package com.example.msgBoard.service;

import com.example.msgBoard.model.Message;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public interface MessageService {
    void addMessage(Message message);
    Message getMessageById(int id);
    List<Message> getAllRootMessages();
    List<Message> getRepliesByParentId(int parentId);
    void updateMessage(Message message);
    void deleteMessage(int id);
}
